import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '（服务类型，1接机，2送机）',
            dataIndex: 'serverType',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'appointmentState',
            width: 200,
        },
        {
            title: '企业名称',
            dataIndex: 'enterpriseName',
            width: 200,
        },
        {
            title: '航班号',
            dataIndex: 'flightNumber',
            width: 200,
        },
        {
            title: '起飞时间',
            dataIndex: 'takeOffTime',
            width: 200,
        },
        {
            title: '始发地',
            dataIndex: 'originatingPlace',
            width: 200,
        },
        {
            title: '到达地',
            dataIndex: 'destinationPlace',
            width: 200,
        },
        {
            title: '车牌号',
            dataIndex: 'plateNumber',
            width: 200,
        },
        {
            title: '备注',
            dataIndex: 'remark',
            width: 200,
        },
        {
            title: '会员卡号',
            dataIndex: 'vipCardNo',
            width: 200,
        },
        {
            title: '原卡号',
            dataIndex: 'oldVipCardNo',
            width: 200,
        },
        {
            title: '使用人',
            dataIndex: 'userName',
            width: 200,
        },
        {
            title: '预约人',
            dataIndex: 'appointmentName',
            width: 200,
        },
        {
            title: '预约时间',
            dataIndex: 'appointmentDate',
            width: 200,
        },
        {
            title: '联系电话',
            dataIndex: 'appointmentPhone',
            width: 200,
        },
        {
            title: '预约成功失败操作者',
            dataIndex: 'optUserId',
            width: 200,
        },
        {
            title: '是否推送',
            dataIndex: 'isNotice',
            width: 200,
        },
        {
            title: '通知方式',
            dataIndex: 'noticeWay',
            width: 200,
        },
        {
            title: '处理日期',
            dataIndex: 'optDate',
            width: 200,
        },
        {
            title: '是否删除',
            dataIndex: 'deleted',
            width: 200,
        },
        {
            title: '更新人',
            dataIndex: 'updateUser',
            width: 200,
        },
        {
            title: '更新时间',
            dataIndex: 'updateTime',
            width: 200,
        },
        {
            title: '创建人',
            dataIndex: 'createUser',
            width: 200,
        },
        {
            title: '创建时间',
            dataIndex: 'createTime',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '（服务类型，1接机，2送机）',
            field: 'serverType',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'appointmentState',
            component: 'Input',
            required: true,
        },
        {
            label: '企业名称',
            field: 'enterpriseName',
            component: 'Input',
            required: true,
        },
        {
            label: '航班号',
            field: 'flightNumber',
            component: 'Input',
            required: true,
        },
        {
            label: '起飞时间',
            field: 'takeOffTime',
            component: 'Input',
            required: true,
        },
        {
            label: '始发地',
            field: 'originatingPlace',
            component: 'Input',
            required: true,
        },
        {
            label: '到达地',
            field: 'destinationPlace',
            component: 'Input',
            required: true,
        },
        {
            label: '车牌号',
            field: 'plateNumber',
            component: 'Input',
            required: true,
        },
        {
            label: '备注',
            field: 'remark',
            component: 'Input',
            required: true,
        },
        {
            label: '会员卡号',
            field: 'vipCardNo',
            component: 'Input',
            required: true,
        },
        {
            label: '原卡号',
            field: 'oldVipCardNo',
            component: 'Input',
            required: true,
        },
        {
            label: '使用人',
            field: 'userName',
            component: 'Input',
            required: true,
        },
        {
            label: '预约人',
            field: 'appointmentName',
            component: 'Input',
            required: true,
        },
        {
            label: '预约时间',
            field: 'appointmentDate',
            component: 'Input',
            required: true,
        },
        {
            label: '联系电话',
            field: 'appointmentPhone',
            component: 'Input',
            required: true,
        },
        {
            label: '预约成功失败操作者',
            field: 'optUserId',
            component: 'Input',
            required: true,
        },
        {
            label: '是否推送',
            field: 'isNotice',
            component: 'Input',
            required: true,
        },
        {
            label: '通知方式',
            field: 'noticeWay',
            component: 'Input',
            required: true,
        },
        {
            label: '处理日期',
            field: 'optDate',
            component: 'Input',
            required: true,
        },
        {
            label: '是否删除',
            field: 'deleted',
            component: 'Input',
            required: true,
        },
        {
            label: '更新人',
            field: 'updateUser',
            component: 'Input',
            required: true,
        },
        {
            label: '更新时间',
            field: 'updateTime',
            component: 'Input',
            required: true,
        },
        {
            label: '创建人',
            field: 'createUser',
            component: 'Input',
            required: true,
        },
        {
            label: '创建时间',
            field: 'createTime',
            component: 'Input',
            required: true,
        },
];
